<!DOCTYPE html>
<html>
<!-- head -->
{include file="common/page/head"}
<link rel="stylesheet" href="__app__/admin/view/StoreOrder/orderDetailList/orderDetailList.css" />
<body>
<!---------------- 商品列表 ------------------->

<!-- 页头 -->
{include file="common/page/header"}
<!-- 主体 -->
<div class="content container-fluid{if $leftBarScale eq '1'} scale{/if}">
    <div class="row">
        <div class="col-md-2 left-section">
            <!-- 左导航菜单 -->
            {include file="common/page/menu"}

        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <h3><i class="icon iconfont">{$Think.session.currentMenu.icon}</i>订单商品列表
                <div class="operation-div">
                    <a href="javascript:;" data-oid="{$orderInfo.id}" id ='export_btn' class="btn btn-success">导出详情</a><a class="btn btn-default" href="javascript:window.history.go(-1);">返回</a>
                </div>
            </h3>
            <div class="inner-section row">
                <div id="content">
                    <div class="list-title">
                        <div class="list-title-panel">
                            <span class="glyphicon glyphicon-list"></span>列表</span>
                        </div>
                    </div>
                    <div class="table-content" id = "list_container">
                        <table id="list-table" class="list-table table-hover table-bordered" cellspacing="0" cellpadding="0" border="0" width="100%" align="center">
                            <tbody>
                                <tr>
                                    <th class="th1">序号</th>
                                    <th class="th2">缩略图</th>
                                    <th class="th3">商品名称</th>
                                    <th class="th4">商品属性</th>
                                    <th class="th5">数量</th>
                                    <th class="th6">单价</th>
                                    <th class="th6">原价</th>

                                </tr>
                                {foreach $orderInfo.goods_list as $key => $goods}
                                <tr {if ($key+1) %2 eq 0}class="even"{else}class="odd"{/if}>
                                    <td>{$key+1}</td>
                                    <td><img src="../../{$goods.thumb}" height="40" alt="{$goods.goods_name}"/></td>
                                    <td>{$goods.goods_name}</td>
                                    <td>
                                        {if $goods.property}
                                        {foreach $goods.property as $property}
                                        <span>{$property.name}:{$property.value}</span>
                                        {/foreach}
                                        {else}
                                        --       
                                        {/if}
                                    </td>
                                    <td>{$goods.count}</td>
                                    <td>{$goods.price}</td>
                                    <td>{$goods.ori_price}</td>

                                </tr>
                                {/foreach}
                                <tr>
									<td colspan="2">
										{if $orderInfo.state eq '0'}待付款
                                        {elseif $orderInfo.state eq '1'}待发货
                                        {elseif $orderInfo.state eq '2'}已发货
                                        {elseif $orderInfo.state eq '3'}已收货
                                        {elseif $orderInfo.state eq '4'}交易关闭
                                        {elseif $orderInfo.state eq '5'}交易完成
                                        {/if}
                                    </td>
									<td colspan="3">
                                    	<span>快递公司：{if $orderInfo.express_company}{$orderInfo.express_company}{else}未填写{/if}</span>
                                    	<span>单号：{if $orderInfo.express_number}{$orderInfo.express_number}{else}未填写{/if}</span>
                                    </td>
                                    <td colspan="2">
                                    	运费：{if $orderInfo.fee}{$orderInfo.fee}元{else}无{/if}
                                    </td>
								</tr>
								<tr>
								</tr>
<!--									<td colspan="2">余额</td>-->
<!--									<td>消耗的余额：{$orderInfo.balance_money}</td>-->
									<!--<td colspan="7">交易成功得到的积分：{$orderInfo.total_points}</td>-->
<!--									<td colspan="3"></td>-->
                                <tr>
                                    <td colspan="2">合计：{$orderInfo.real_money}元</td>
                                    <td colspan="5">
                                      	<span>地址：{$orderInfo.address_text}</span>
                                        <span>买家留言：{if $orderInfo.message}{$orderInfo.message}{else}无{/if}</span>
                                        {if condition="$orderInfo.refund_mark"}
                                        <span>退款备注：{$orderInfo.refund_mark}</span>
                                        {/if}
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="7">
                                    	{if $orderInfo.card_discount}<span style="color: #666666">{$orderInfo.card_discount}折</span>{/if}
                                    	{if $orderInfo.min}<span style="color: #666666">折扣：{$orderInfo.min}</span>{/if}
                                    	
                                        <span style="color: #FF5C00">实际金额：{$orderInfo.total_price}</span>

                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
					<div class="print-button">
						<a href="javascript:window.print();" class="btn btn-sm btn-default">打印</a>
						{if $orderInfo.state neq '0'}
							{if $config.order_ticket_notify eq 1}
								<a data-oid="{$orderInfo.id}" data-key="{$config.order_notify_key}" class="btn btn-sm btn-default send-ticket-notify">小票打印</a>
							{/if}
						{/if}
					</div>
                    <div class="fn-clear"></div>

                    <!-- 列表底部 -->
                    <div class="list-bottom">
                        <div class="list-bottom-panel">
                        </div>
                    </div>
                </div>
                <!--分页-->
                <div id="page-selection"></div>
            </div>
        </div>
    </div>
</div>

<!-- 页脚 -->
{include file="common/page/footer"}

<!-- jsfiles -->
{include file="common/page/jsfiles"}
<script src="__static__/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="__static__/js/jquery.bootpag/jquery.bootpag.min.js"></script>
<script type="text/javascript" src="__app__/admin/view/StoreOrder/orderDetailList/orderDetailList.js"></script>
</body>
</html>

